package cn.tedu.person.mapper;

import cn.tedu.person.pojo.dto.DepartmentUpdateDTO;
import cn.tedu.person.pojo.entity.Department;
import cn.tedu.person.pojo.vo.DepartmentIndexVO;
import cn.tedu.person.pojo.vo.DepartmentStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {

    int insert(Department department);

    List<DepartmentIndexVO> list();

    int deleteById(Long id);

    int update(Department department);

    DepartmentStandardVO getStandardById(Long id);

    int countByName(String name);

}
